<!DOCTYPE html>
<html lang="en">

	<head>
		<title>Matrix Admin</title>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="/css/bootstrap.min.css" />
		<link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="/css/colorpicker.css" />
		<link href="/font-awesome/css/font-awesome.css" rel="stylesheet" />
		<!--<link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>-->
	</head>
	<body>
		<div id="content">
			<div id="content-header">
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span6">
						<div class="widget-box">
							<div class="widget-title"> </span>
							</div>
							<div class="widget-content nopadding">
								<script type="text/plain" id="myEditor" style="width:660px;height:380px;">
								</script>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>
		
		<script src="/js/jquery.min.js"></script>
		<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
		<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.js"></script>
		<script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
		<script type="text/javascript">
			//实例化编辑器
		    var editor = UE.getEditor('myEditor', {
		    	toolbars: [
			        ['fullscreen']
			    ],
			    autoHeight: false,
			    initialFrameWidth:660
			});
			editor.addListener('ready', function() {
			    parent.downOperate();
			});
			
			var interval = self.setInterval("console()",1000);
			
			function console(){
				$.ajax({
					type: "POST",
					url: "/server/consoleInfo",
					success: function(data) {
						editor.setContent(data, true);
					}
				});
			}
			
		</script>
	</body>

</html>